package com.itany.mall.service;

import java.util.List;

import com.itany.mall.entity.Product;
import com.itany.mall.exception.ProductNameExistsException;
import com.itany.mall.exception.ProductNotFoundException;
import com.itany.mall.exception.ProductTypeNotFoundException;

public interface ProductService {

	List<Product> findAll();

	void addProduct(String name, double price, long typeId)
			throws ProductNameExistsException, ProductTypeNotFoundException;

	Product findById(long productId) throws ProductNotFoundException;

}
